package com.wind.httpProxyServer;

import com.wind.httpProxyServer.bean.ProcessConfigBean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class HttpProxyMain {

    private final static Logger log = LoggerFactory.getLogger(HttpProxyMain.class);

    public static void main(String[] args) {

        new Thread("server"){
            @Override
            public void run() {
                ProcessConfigBean processConfigBean =new ProcessConfigBean();
                processConfigBean.setPort(8888);
                processConfigBean.setUsername("user123");
                processConfigBean.setPassword("user123");
              new  HttpProxyServer(processConfigBean).start();
            }
        }.start();
//
//        new Thread("client"){
//            @Override
//            public void run() {
//                HttpProxyClient.start();
//            }
//        }.start();
    }
}
